package com.chenfan.mcn.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenfan.mcn.extension.log.FieldDesc;
import com.chenfan.mcn.constant.DictTypeCst;
import com.chenfan.mcn.enums.StarTypeEnum;
import com.chenfan.mcn.model.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 红人基础资料
 * </p>
 *
 * @author liuyang
 * @since 2021-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("star_basic_data")
public class StarBasicData extends BaseEntity {

    private static final long serialVersionUID = 6766465110519363208L;

    /**
     * 红人ID
     */
    @Excel(name = "红人ID", orderNum = "1")
    private String starCode;

    /**
     * 红人类型
     */
    @FieldDesc(value = "红人类型", translator = StarTypeEnum.class)
    private Integer starType;

    /**
     * 本人姓名
     */
    @Excel(name = "本人姓名", orderNum = "2")
    @FieldDesc(value = "真实姓名")
    private String starName;

    /**
     * 红人昵称
     */
    @Excel(name = "红人昵称", orderNum = "3")
    @FieldDesc(value = "红人昵称")
    private String starNickname;

    /**
     * 证件类型（0居民身份证、1其它）
     */
    @FieldDesc(value = "证件类型", replace = {"居民身份证_0", "其它_1"})
    private Integer idCardType;


    /**
     * 身份证号码
     */
    @Excel(name = "身份证号码", orderNum = "4")
    @FieldDesc(value = "身份证号码")
    private String idCard;

    /**
     * 红人经纪人id
     */
    private Long starAgentId;

    /**
     * 红人经纪人
     */
    @Excel(name = "红人经纪人", orderNum = "5")
    @FieldDesc(value = "红人经纪人")
    private String starAgentName;

    /**
     * 执行人id
     */
    private Long executorId;
    /**
     * 执行人名称
     */
    @FieldDesc(value = "执行人")
    private String executorName;

    /**
     * 性别
     */
    @Excel(name = "性别", replace = {"男_0", "女_1"}, orderNum = "6")
    @FieldDesc(value = "性别", replace = {"男_0", "女_1"})
    private Integer gender;

    /**
     * 生日
     */
    @Excel(name = "生日", exportFormat = "yyyy/MM/dd", orderNum = "7")
    @FieldDesc(value = "生日")
    private Date birthday;

    /**
     * 红人性质
     */
    @Excel(name = "红人性质", orderNum = "8")
    @FieldDesc(value = "红人性质", dictType = DictTypeCst.STAR_NATURE)
    private String starProperty;

    /**
     * 红人分类
     */
    @Excel(name = "红人分类", orderNum = "9")
    @FieldDesc(value = "红人分类", dictType = DictTypeCst.STAR_CLASSIFICATION)
    private String starClassification;

    /**
     * 主要活跃平台
     */
    @Excel(name = "主要活跃平台", orderNum = "10")
    @FieldDesc(value = "主要活跃平台", dictType = DictTypeCst.ACTIVE_PLATFORMS)
    private String mainActivePlatforms;

    /**
     * 擅长类型
     */
    @Excel(name = "擅长类型", orderNum = "11")
    @FieldDesc(value = "擅长类型", dictType = DictTypeCst.GOOD_AT_TYPE)
    private String goodAtType;

    /**
     * 红人标签
     */
    @Excel(name = "红人标签", orderNum = "12")
    @FieldDesc(value = "红人标签", dictType = DictTypeCst.STAR_LABEL)
    private String starLabel;

    /**
     * 红人来源
     */
    @Excel(name = "红人来源", orderNum = "20")
    @FieldDesc(value = "红人来源", dictType = DictTypeCst.STAR_SOURCE)
    private String starSource;

    /**
     * 签约公司
     */
    @Excel(name = "签约公司", orderNum = "21")
    @FieldDesc(value = "签约公司")
    private String signCompany;

    /**
     * 备注
     */
    @FieldDesc(value = "备注")
    private String remark;

    /**
     * 推荐指数
     */
    @FieldDesc(value = "推荐指数")
    private String indexRecommendation;

    /**
     * 推荐理由
     */
    @FieldDesc(value = "推荐理由", dictType = DictTypeCst.RECOMMENDED_INDEX)
    private String reasonsRecommendation;

    /**
     * 红人喜好
     */
    @FieldDesc(value = "红人喜好")
    private String starLike;

    /**
     * 红人沟通注意点
     */
    @FieldDesc(value = "红人沟通注意点")
    private String starCommunicationPoints;

    /**
     * 配合度
     */
    @FieldDesc(value = "配合度", dictType = DictTypeCst.MATCHING_DEGREE)
    private String matchingDegree;

    /**
     * 能接受最长植入时长
     */
    @FieldDesc(value = "能接受最长植入时长")
    private Integer longestImplantationTime;

    /**
     * 正文是否可带链接(0，否，1可，2评论可带)
     */
    @FieldDesc(value = "正文是否可带链接")
    private Integer isLink;

    /**
     * 是否@（0否1可）
     */
    @FieldDesc(value = "是否@", replace = {"否_0", "是_1"})
    private Integer isAtt;

    /**
     * 正文可否加offer（0否1可）
     */
    @FieldDesc(value = "正文可否加offer", replace = {"否_0", "可_1"})
    private Integer isOffer;

    /**
     * 优秀案例
     */
    @FieldDesc(value = "优秀案例")
    private String excellentCases;

    /**
     * 0-启用，1-禁用
     */
    @FieldDesc(value = "红人状态", replace = {"启用_0", "禁用_1"})
    private Integer starStatus;

    /**
     * 红人所在地
     */
    @FieldDesc(value = "红人所在地", isArray = true)
    private String starAddress;

    /**
     * 是否按执行结算 0 否 1 是
     */
    @FieldDesc(value = "是否按执行结算", replace = {"是_0", "否_1"})
    private Integer isAllPlatform;

    /**
     * 红人头像
     */
    private String headImg;

    /**
     * 是否接受公司统一返点：0否 1是
     */
    @FieldDesc(value = "是否接受公司统一返点", replace = {"否_0", "是_1"})
    private Integer uniformRebate;

}